import request from '@/utils/request'

// 获取消息列表
export function getMessages(params) {
  return request({
    url: '/message/list',
    method: 'get',
    params
  })
}

// 获取消息类型列表
export function getMessageTypes() {
  return request({
    url: '/message/types',
    method: 'get'
  })
}

// 重发消息
export function resendMessage(id) {
  return request({
    url: `/message/${id}/resend`,
    method: 'post'
  })
}

// 获取消息统计
export function getMessageStats(params) {
  return request({
    url: '/stats/messages',
    method: 'get',
    params
  })
} 